/*
 * Copyright (c) 2016- 2020 qolome.com Inc. All Rights Reserved.
 * ProjectName: qolome-knowledge
 * FileName: AbstractMessage.java
 * Author: jiangfeng@qolome.com
 * Date: 2020/3/12 下午5:31
 * LastModified: 2020/03/12 17:31:12
 */

package com.qolome.knowledge.design.pattern.bridge.demo.messgae;

/**
 * @author Qolome
 * @version V1.0
 * @Description 抽象信息
 * @date 2020年 03月12日 17:31:31
 */
public abstract class AbstractMessage {

    private IMessage message;

    public AbstractMessage(IMessage message){
        this.message = message;
    }

    void sendMessage(String message, String toUser){
        this.message.send(message,toUser);
    }
}
